package com.wjm.demo.test1.net_test.tcp_socket_test.uploadpic_thread;

import java.net.ServerSocket;
import java.net.Socket;

public class UploadPicServer {
    public static void main(String[] args) throws Exception {

        ServerSocket ss = new ServerSocket(10001);

        while (true) {


            Socket accept = ss.accept();
            new Thread(new UploadTask(accept)).start();

        }

//        ss.close();
    }
}
